// useGoTo.ts  
import { useRouter } from 'vue-router';  
  
export function useGoTo() {  
  const router = useRouter();  
  
  const goTo = (path: string) => {  
    router.push(path);  
  };  
  
  return { goTo };  
}